import { register } from 'register-service-worker';
import {axios,get,post,Patch,Delete} from './request';

export const ajax={

    register:(data)=>post('./user',data),

    findUser:(params)=>get('/user',params), //查询用户

    
    sendCaptcha:(params)=>get("http://47.104.209.44:3333/captcha/sent",params),//网易云验证码接口

    verifyCaptcha:(params)=>get("http://47.104.209.44:3333/captcha/verify",params),//校验验证码

    getBili:(params,headers)=>get("/mall-c-search/home/feed/list",params,headers), //获取b站接口

    getCity:(params,headers)=>get("/api/ticket/city/list",params,headers),

    getTicket:(params,headers)=>get("/api/ticket/project/listV3",params,headers),

    getClass:(params,headers)=>get("/mall-c-search/home/category/listV2",params,headers),

    getMine:(params,headers)=>get("/api/ticket/owner/home",params,headers),

    getGoodinfo:(params,headers)=>get("/mall-c-search/items/info",params)
}
